package util.pathUtil;
import java.io.File;
import java.net.URL;
public class JavaPath {
	public static String rootPath = JavaPath.class.getResource("/").toString();
	public static void main(String[] args) {
		File file = new File("file/1.xml");
		// System.out.println(file.getAbsolutePath());
		// System.out.println(url2.getPath());
	}
	private void m1() {
		// System.out.println(rootPath);
		File file = new File(rootPath + "file/1.xml");
		URL url1 = JavaPath.class.getResource("t");
		URL url2 = JavaPath.class.getClassLoader().getResource("");
		// System.out.println(rootPath);
		System.out.println(url1.getPath());
		System.out.println(url2.getPath());
		// System.out.println(file.getAbsolutePath());
		// System.out.println(file.exists());
	}
}
